package com.qiwo.webshow.domain;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <pre>
 *  @author chenwenchao
 *  @date 2018-10-23 14:26:54
 * 系列类型
 * </pre>
 * <small> 2018-10-23 14:26:54 | chenwenchao</small>
 */
@Data
@SuppressWarnings("serial")
@TableName("tb_serises")
@EqualsAndHashCode(callSuper = true)
public class SerisesDO extends Model<SerisesDO> implements Serializable {
    @TableId
    private Long id;

    /**
     * 系列名称
     */
    @ApiModelProperty("系列名称")
    @TableField("name")
    private String name;

    private  Integer sort;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
